package studio.raptor.databus.dashboard.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author jack
 * @since 1.0
 */
@Getter
@Setter
@ToString
public class TaskConfig {


  /**
   * 任务所在分发器的ip
   */
  @NotEmpty(message = "the dispatcher ip must be non-null")
  private String ip;

  /**
   * 任务所在分发器的端口
   */
  private Integer port;

  /**
   * 接口编码
   */
  @NotEmpty(message = "the task code must be non-null")
  private String code;

  /**
   * 事件id
   */
  private Integer kindId;

  /**
   * 任务状态：start,stop
   */
  @NotEmpty(message = "the task status must be non-null")
  private String status;
}
